/**
 * 功能描述
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");
    var aw = require("ajaxwrapper");
    //assets
    var template = require("./assets/tpl/checkin_main.tpl");
//    require("./assets/css/checkin_main.css");

    //business
//    var planfile = require("./store/planfile");
    //component
    var checkinSubnavComp = require("./component/checkinSubnavComp");
    var checkinGridComp = require("./component/checkinGridComp");
    var checkinFormComp = require("./component/checkinFormComp");
    var checkinSignUpForm = require("./component/checkinSignUpForm");
    var checkinEditGridComp = require("./component/checkinEditGridComp");
    var checkinSignUpEditGrid = require("./component/checkinSignUpEditGrid");
    var checkineditFormComp =	require("./component/checkineditFormComp");
    //constant

    //handler
    var subnavEvents =	require("./handler/subnavEvents");
    //store
//    var checkinfile = require("./store/checkinfile");
    
    var checkin_main = ELView.extend({
        attrs: {
        	model:{},
            template: template
        },
        handler:subnavEvents,
        initComponent:function (params, widget) {
        	checkinSubnavComp.initComponent(params, widget);
	        checkinGridComp.initComponent(params, widget);
	        checkinFormComp.initComponent(params, widget);
	        checkinSignUpForm.initComponent(params, widget);
	        checkinEditGridComp.initComponent(params, widget);
	        checkinSignUpEditGrid.initComponent(params, widget);
	        checkineditFormComp.initComponent(params, widget);
        },
        afterInitComponent: function (params, widget) {
        	widget.get("grid").refresh();
        }
    });

    module.exports = checkin_main;
});
